﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UIManager : MonoBehaviour {

	public AVGMachine machine;
	// Use this for initialization
	void Start () {

		Cursor.visible = false;
		Cursor.lockState = CursorLockMode.Locked;
	}
	
	// Update is called once per frame
	void Update () {
		//if (Input.GetKeyDown("6"))
		//{
		//	machine.StartAVG();
		//}
		if (Input.GetMouseButtonDown(0))
		{
			machine.UserClicked();
		}
	}

	public void StartAVG(Story01 data, AVGAssetConfig asset)
	{
		machine.data = data;
		machine.asset = asset;
		machine.StartAVG();
	}
}
